package com.findFish.cage.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.findFish.common.annotation.Excel;
import com.findFish.common.core.domain.BaseEntity;

/**
 * 网箱点位对象 cage_location
 * 
 * @author admin
 * @date 2025-04-03
 */
public class CageLocation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private String id;

    /** 网箱ID */
    @Excel(name = "网箱ID")
    private String cageId;

    /** 纬度(°) */
    @Excel(name = "纬度(°)")
    private BigDecimal latitude;

    /** 经度(°) */
    @Excel(name = "经度(°)")
    private BigDecimal longitude;

    /** 水深（米） */
    @Excel(name = "水深", readConverterExp = "米=")
    private Long depth;

    /** 所属养殖区域 */
    @Excel(name = "所属养殖区域")
    private String region;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setCageId(String cageId) 
    {
        this.cageId = cageId;
    }

    public String getCageId() 
    {
        return cageId;
    }

    public void setLatitude(BigDecimal latitude) 
    {
        this.latitude = latitude;
    }

    public BigDecimal getLatitude() 
    {
        return latitude;
    }

    public void setLongitude(BigDecimal longitude) 
    {
        this.longitude = longitude;
    }

    public BigDecimal getLongitude() 
    {
        return longitude;
    }

    public void setDepth(Long depth) 
    {
        this.depth = depth;
    }

    public Long getDepth() 
    {
        return depth;
    }

    public void setRegion(String region) 
    {
        this.region = region;
    }

    public String getRegion() 
    {
        return region;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cageId", getCageId())
            .append("latitude", getLatitude())
            .append("longitude", getLongitude())
            .append("depth", getDepth())
            .append("region", getRegion())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
